﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dukou.DTO
{
    /// <summary>
    /// 对象缓存
    /// </summary>
    [Serializable]
    public class ObjectCache
    {
        public ObjectCache(int depth, object cache)
        {
            this.Depth = depth;
            this.Cache = cache;
        }

        /// <summary>
        /// 获取 / 设置 深度
        /// </summary>
        public int Depth { get; internal set; }

        /// <summary>
        /// 获取 / 设置 缓存
        /// </summary>
        public object Cache { get; private set; }
    }
}
